export function asyncFileToBase64(file: any) {
  return new Promise((resolve, reject) => {
    const reader = new FileReader();
    reader.readAsDataURL(file);
    reader.onload = (e) => {
      // target.result 该属性表示目标对象的DataURL
      resolve(e.target?.result)
    };
  });
}
